import ActionTypes from "../action";
import { goodsType } from "../types";
export default {
  // 员工管理
  [ActionTypes.USER_CORE_MANAGE]: [
    {
      label: "用户姓名",
      prop: "nickName",
    },
    {
      label: "用户昵称",
      prop: "nickName",
      overHidden: true,
    },
    {
      label: "用户电话",
      prop: "mobile",
      overHidden: true,
    },
    {
      label: "创建时间",
      prop: "gmtCreated",
      format: "yyyy-mm-dd HH:MM",
    },
  ],
  [ActionTypes.USER_CORE_HISTORY]: [
    {
      label: "订单编号",
      prop: "orderId",
      overHidden: true,
    },
    {
      label: "商品编号",
      prop: "productCode",
      overHidden: true,
    },
    {
      label: "商品名称",
      prop: "productName",
      overHidden: true,
    },
    {
      label: "订单类别",
      prop: "orderType",
      formatter(_, value) {
        return goodsType[value] || value;
      },
    },
    {
      label: "订单金额",
      prop: "orderFee",
    },
    {
      label: "展会信息",
      prop: "exhibitionName",
      overHidden: true,
    },
    {
      label: "购买时间",
      prop: "payTime",
      overHidden: true,
    },
  ],
};
